<%--
  Created by IntelliJ IDEA.
  User: Lenovo
  Date: 2025/10/11
  Time: 10:13
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>优学堂精品课程管理系统登录</title>
    <meta charset="utf-8">
    <link rel="stylesheet" href="${pageContext.request.contextPath}/css/bootstrap.min.css" type="text/css"></link>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/css/mycss.css" type="text/css"></link>
    <script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery.min.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/js/bootstrap.min.js"></script>
    <script>
        $(function (){
            $("#codeImage,#changeCode").click(function (){
            //     点击触发后换一张验证码
                $("#codeImage").attr("src","${pageContext.request.contextPath}/code/show?id="+new Date().getTime());

            })
        })
    </script>
</head>
<body>
<!-- 使用自定义css样式 div-signin 完成元素居中-->
<div class="containercc div-signin" style="position: relative; top: 50%; margin-top: -215px;">
    <div class="panel panel-primary div-shadow">
        <!-- h3标签加载自定义样式，完成文字居中和上下间距调整 -->
        <div class="panel-heading">
            <h3> 优学堂精品课程管理系统</h3>
            <span>High-quality Courses Manager System</span>
        </div>
        <div class="panel-body">
            <!-- login form start -->
            <form action="${pageContext.request.contextPath}/user/login" class="form-horizontal ccc" method="post">
                <div class="form-group">
                    <label class="col-xs-3 control-label">用户名：</label>
                    <div class="col-xs-9">
                        <input class="form-control" type="text" name="loginName" placeholder="请输入用户名">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-xs-3 control-label">密&nbsp;&nbsp;&nbsp;&nbsp;码：</label>
                    <div class="col-xs-9">
                        <input class="form-control" type="password" name="password" placeholder="请输入密码">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-xs-3 control-label">验证码：</label>
                    <div class="col-xs-4">
                        <input class="form-control" type="text" name="code" placeholder="请输入验证码">
                    </div>
                    <div class="col-xs-2">
                        <!-- 验证码图片加载（需引入验证码文件）图像高度经过测试，建议不要修改 -->
                        <img id="codeImage" class="img-rounded" src="${pageContext.request.contextPath}/code/show" alt="验证码" style="height: 32px; width: 70px;"/>
                    </div>
                    <div class="col-xs-2">
                        <button type="button" class="btn btn-link" id="changeCode">看不清</button>
                    </div>
                </div>
                <br/>
                <div class="form-group">
                    <div class="col-xs-9  col-xs-offset-3 padding-left-0">
                        <div class="col-xs-6">
                            <button type="reset" class="btn btn-primary btn-block">重&nbsp;&nbsp;置</button>
                        </div>
                        <div class="col-xs-6">
                            <button type="submit" class="btn btn-primary btn-block">登&nbsp;&nbsp;录</button>
                        </div>
                    </div>
                    <div class="col-xs-6">
                        <button type="button" class="btn btn-link btn-block" style="color:red;">${userMsg}</button>
                    </div>
                </div>
            </form>
            <!-- login form end -->
        </div>
    </div>
</div>
<!-- 页尾 版权声明 -->
<div class="containercc" style="position: relative;top: 50%;" >
    <div class="col-xs-12 foot-css" id="ccc" >
        <p class="text-muted credit">
            Copyright © 2017 南京网博 版权所有
        </p>
    </div>
</div>
</body>
</html>